<script>
export default {
  props: {
    list: {
      type: Array,
      default:()=>[]
    }
  }
}
</script>

<template>
  <el-timeline>
    <el-timeline-item v-for="(item, index) in history" :key="index" :timestamp="item.gmtCreate">
      <el-row>
        <el-col :span="24">
          <span>{{ item.name }}</span>
        </el-col>
      </el-row>
      <el-row v-if="item.executorName">
        <el-col :span="24">
          <i class="el-icon-user"></i>
          <span class="ml10">{{ item.executorName }}</span>
        </el-col>
      </el-row>
      <el-row v-if="item.gmtFinished">
        <el-col :span="24">
          <i class="el-icon-date"></i>
          <span class="ml10">{{ item.gmtFinished }}</span>
        </el-col>
      </el-row>
    </el-timeline-item>
  </el-timeline>
</template>

<style scoped lang="scss">

</style>
